package com.iflytek.day13.extend.p01;

public class Test {
      public static void main(String[] args) {
          Teacher teacher = new Teacher();
          teacher.setName("老师");
          teacher.setAge(31);
          teacher.setSalary(1000.99);
          System.out.println(teacher.getName());
          System.out.println(teacher.getAge());
          System.out.println(teacher.getSalary());
          teacher.teach();
          
          BanZhuRen bzr = new BanZhuRen();
          bzr.setName("班主任");
          bzr.setAge(28);
          bzr.setSalary(1000.99);
          System.out.println(bzr.getName());
          System.out.println(bzr.getAge());
          System.out.println(bzr.getSalary());
          bzr.admin();

          Student stu = new Student();
          stu.setName("学生");
          stu.setAge(31);
          //xugan.setSalary(1000.99); // xugan没有薪水属性，报错！
          System.out.println(stu.getName());
          System.out.println(stu.getAge());
      }
  }